home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / smath.jar / text / smath / 01 / 03091100.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  15.6 KB  |  227 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Brackets and Grouping</title><meta name="filename" content="text/smath/01/03091100"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle5{
  5.                 }
  6.         span.Tabelle5A{
  7.                 width:1.499cm;}
  8.         span.Tabelle5B{
  9.                 width:16.501cm;}
  10.         tr.Tabelle51{
  11.                 }
  12.         td.Tabelle5A1{
  13.                 }
  14.         table.Tabelle3{
  15.                 }
  16.         span.Tabelle3A{
  17.                 width:1.501cm;}
  18.         span.Tabelle3B{
  19.                 width:16.499cm;}
  20.         tr.Tabelle31{
  21.                 }
  22.         td.Tabelle3A1{
  23.                 }
  24.         table.Tabelle2{
  25.                 }
  26.         span.Tabelle2A{
  27.                 width:1.501cm;}
  28.         span.Tabelle2B{
  29.                 width:16.499cm;}
  30.         tr.Tabelle21{
  31.                 }
  32.         td.Tabelle2A1{
  33.                 }
  34.         table.Tabelle8{
  35.                 }
  36.         span.Tabelle8A{
  37.                 width:1.499cm;}
  38.         span.Tabelle8B{
  39.                 width:16.498cm;}
  40.         tr.Tabelle81{
  41.                 }
  42.         td.Tabelle8A1{
  43.                 }
  44.         p.P1{
  45.                 }
  46.         p.P2{
  47.                 }
  48.         p.P3{
  49.                 }
  50.         p.P4{
  51.                 }
  52.         p.P5{
  53.                 }
  54.         p.P6{
  55.                 }
  56.         p.P7{
  57.                 }
  58.         p.P8{
  59.                 }
  60.         p.P9{
  61.                 }
  62.         p.P10{
  63.                 }
  64.         p.P11{
  65.                 }
  66.         p.P12{
  67.                 }
  68.         p.P13{
  69.                 }
  70.         p.P14{
  71.                 }
  72.         p.P15{
  73.                 }
  74.         p.P16{
  75.                 }
  76.         span.T1{
  77.                 font-weight:bold;}
  78.         span.fr1{
  79.                 }
  80.         span.fr2{
  81.                 }
  82.         </style></head><body>
  83.    
  84.    
  85.    <p class="P1"/>
  86.    <p class="Head1"><a name="klaugru"/><help:key-word value="brackets and grouping in %PRODUCTNAME Math" tag="kw67338_1" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="grouping and brackets in %PRODUCTNAME Math" tag="kw67338_2" xmlns:help="http://openoffice.org/2000/help"/><help:link Id="67338" xmlns:help="http://openoffice.org/2000/help">Brackets and Grouping</help:link></p>
  87.    <p class="Paragraph">The quotation marks in the examples serve only for emphasis in the text and do not belong to the content of the examples and commands.</p>
  88.    <table><tr class="Tabelle51"><th class="Tabelle5A1" style="text-align:left;"><span class="Tabelle5A">
  89.        <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="Grafik3" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="3" xlink:href="65640" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  90.       </span></th><th class="Tabelle5A1" style="text-align:left;"><span class="Tabelle5B">
  91.        <p class="Paragraph">During manual entry of the samples in the command window, please note that spaces are often required for correct structure.</p>
  92.       </span></th></tr></table>
  93.    <p class="Paragraph"/>
  94.    <p class="Paragraph">As an important bracket symbol, one can use braces - "{}". Using this symbol you can group several other expressions/icons into <span class="T1">one </span>new expression. The example "{a + b}over{c + d} - e" illustrates this. The brackets in this example are not shown in the formula documents also do not need any space.</p>
  95.    <p class="Paragraph">Set brackets were previously inserted in the Selection window or directly in the Command window as "left lbrace <?> right rbrace". Now, a left and a right set bracket can also be inserted using "lbrace" and "rbrace", without or without wildcards.</p>
  96.    <p class="Paragraph">There are a total of eight (8) different types of brackets available! The "ceil" and "floor" brackets are often used for rounding up or down the argument to the next integer in Computer Science: "lceil -3.7 rceil = -3" or "lfloor -3.7 rfloor = -4".</p>
  97.    <p class="Paragraph">Pointed brackets with a vertical line in between them are common in Physics: "langle a mline b rangle" or "langle a mline b mline c over d mline e rangle." The height and positioning of the vertical lines always corresponds exactly to the enclosing brackets.</p>
  98.    <p class="Paragraph">All brackets may only occur in the correct pairing. The brackets have some common characteristics:</p>
  99.    <p class="Paragraph">All types of brackets show the same functions in groups as are described for "{}"<span class="T1">-</span> brackets.</p>
  100.    <p class="Paragraph">All types of brackets, including those visible, allow the definition of empty groups. The enclosed expression may therefore be empty.</p>
  101.    <p class="Paragraph">Another common characteristic of all these brackets is that they do not adjust their size to the enclosed expression, which is true in both directions. For example, if you want "( a over b )" with a bracket size adjusted to a and b you must insert "left" and "right". Entering "left(a over b right)" produces appropriate sizing. The same is true for the different entries and therefore the appropriate results of "(size 3{a over b})" and "left(size 3{a over b}right)". If the brackets themselves are part of the expression whose size is changed, they are also part of the size change: "size 3(a over b)" and "size 12(a over b)"<span class="T1">. </span>Of course, the sizing bracket to bracketed expression ratio does not change in any way.</p>
  102.    <p class="Paragraph">Since "left" and "right" ensure unique mutual assignments of the brackets, <span class="T1">every </span>single bracket can be used as an argument for these two brackets, even the right brackets on the left side and vice versa. Instead of one bracket it may say "none" there, which means that there is no bracket shown there and that there is no room reserved for a bracket. Using this, you can create expressions like the following:</p>
  103.    <ul class="L1">
  104.     <li class="">
  105.      <p class="P2">left lbrace x right none</p>
  106.     </li>
  107.     <li class="">
  108.      <p class="P2">left [ x right )</p>
  109.     </li>
  110.     <li class="">
  111.      <p class="P2">left ] x right [</p>
  112.     </li>
  113.     <li class="">
  114.      <p class="P2">left rangle x right lfloor</p>
  115.     </li>
  116.    </ul>
  117.    <p class="Paragraph">The same rules apply to "left" and "right" as to the other brackets, specifically, they also work as group builders and may enclose the empty expression.</p>
  118.    <p class="Paragraph">The combination of brackets that do not belong together as well as brackets on one side only and repositioning left and right occur often. This is illustrated by an example from math; this, however, <span class="T1">cannot</span> be entered like this:</p>
  119.    <ul class="L2">
  120.     <li class="">
  121.      <p class="P3">[2, 3) - right open interval</p>
  122.     </li>
  123.    </ul>
  124.    <p class="Paragraph">Using "left" and "right" you can set individual brackets; however, the brackets do not have any fixed size because they adjust to the argument. Setting a single bracket is a bit cumbersome. Therefore, there is now the possibility of displaying single brackets with a fixed size, by putting a "\" (backslash) in front of normal brackets. These brackets then act like any other symbol and no longer have the special functionality of brackets, i.e. they do <span class="T1">not </span>work as group builders and their orientation corresponds to that of other symbols. See "size *2 \langle x \rangle" and "size *2 langle x rangle"</p>
  125.    <p class="Paragraph">The complete overview looks as follows:</p>
  126.    <ul class="L3">
  127.     <li class="">
  128.      <p class="P4">\{ or \lbrace, \} or \rbrace</p>
  129.     </li>
  130.    </ul>
  131.    <ul class="L4">
  132.     <li class="">
  133.      <p class="P5">\(, \)</p>
  134.     </li>
  135.    </ul>
  136.    <ul class="L5">
  137.     <li class="">
  138.      <p class="P6">\[, \]</p>
  139.     </li>
  140.    </ul>
  141.    <ul class="L6">
  142.     <li class="">
  143.      <p class="P7">\langle, \rangle</p>
  144.     </li>
  145.    </ul>
  146.    <ul class="L7">
  147.     <li class="">
  148.      <p class="P8">\lceil, \rceil</p>
  149.     </li>
  150.    </ul>
  151.    <ul class="L8">
  152.     <li class="">
  153.      <p class="P9">\lfloor, \rfloor</p>
  154.     </li>
  155.    </ul>
  156.    <ul class="L9">
  157.     <li class="">
  158.      <p class="P10">\lline, \rline</p>
  159.     </li>
  160.    </ul>
  161.    <ul class="L10">
  162.     <li class="">
  163.      <p class="P11">\ldline, \rdline</p>
  164.     </li>
  165.    </ul>
  166.    <p class="Paragraph">In this way, intervals like the one above can be built in <span class="T1"><help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Math</span> without any problems: \[2", "3\) or "\]2", "3\[ (Attention: These quotation marks are part of the entry.)</p>
  167.    <table><tr class="Tabelle31"><th class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A">
  168.        <p class="Paragraph"><draw:image draw:style-name="fr2" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  169.       </span></th><th class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3B">
  170.        <p class="Paragraph">Please note that the quotation marks must be entered and can be obtained with <span class="T1">(Shift)(2)</span> and not with typographical quotation marks. Generally, punctuation marks (like the comma in this case) should always be set as text; spaces often look good as well. Although it is also possible to use "\[2,~3\)" the above option is preferred. In the example above, "fixed size" always describes a bracket size dependent on the font size used.</p>
  171.       </span></th></tr></table>
  172.    <p class="Paragraph">The cascading of groups is relatively problem-free. For hat "{a + b}" the "hat" is displayed simply over the center of "{a + b}". Also, "color red lceil a rceil" and "grave hat langle x * y rangle" work as expected. The result of the latter can be compared to "grave {hat langle x * y rangle}." This is not surprising since these attributes do not compete but rather can be combined.</p>
  173.    <p class="Paragraph">This differs slightly for competing or at least mutually influencing attributes. This is often the case for font attributes. For example, which color does the b have in "color yellow color red (a + color green b)", or which size does it have in "size *4 (a + size /2 b)"? Given a base size of 12, does it have the size 48, 6 or even 24 (which could be seen as a combination)? The following description did basically apply to <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> 4.0; however, this is now the basic resolution rule, which will be followed consistently in the future. In principle, this rule applies to all group operations. This only has a visible effect on the font attributes, like "bold", "ital", "phantom", "size", "color" and "font":</p>
  174.    <ul class="L11">
  175.     <li class="">
  176.      <p class="P12">Group operations in sequence will be treated as if every single operation was again enclosed by {}. They are grouped in cascades and on every cascade level there is <span class="T1">no more than </span>one operation: "size 12 color red font sans size -5 (a + size 8 b)" like "{size 12{color red{font sans{size -5 (a + {size 8 b})}}}}".</p>
  177.     </li>
  178.    </ul>
  179.    <ul class="L12">
  180.     <li class="">
  181.      <p class="P13">This is then interpreted from left to right, where an operation only completed the changes for its corresponding group (or expression). There, the operations further to the right "replace" or "combine themselves with" their predecessors.</p>
  182.     </li>
  183.    </ul>
  184.    <ul class="L13">
  185.     <li class="">
  186.      <p class="P14">A group operation does not have any effect on higher-level operations but rather affects only lower-level groups and expressions, including their brackets and "super-/subscripts". See also "a + size *2 (b * size -8 c_1)^2"</p>
  187.     </li>
  188.    </ul>
  189.    <table><tr class="Tabelle21"><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  190.        <p class="Paragraph"><draw:image draw:style-name="fr2" draw:name="Grafik1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="1" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  191.       </span></th><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2B">
  192.        <p class="Paragraph">"color ..." and "font ..." as well as "size n" (n is a decimal) replace any preceding operations of the same type,</p>
  193.        <p class="Paragraph">for "size +n", "size -n", "size *n", and "size /n" the effects of the operations are combined,</p>
  194.        <p class="Paragraph">"size *2 size -5 a" would be double the starting size minus 5</p>
  195.        <p class="Paragraph">"font sans ( a + font serif b)"</p>
  196.        <p class="Paragraph">"size *2 ( a + size /2 b )"</p>
  197.       </span></th></tr></table>
  198.    <p class="Paragraph">For the StarSymbol Unicode font there are 2 exceptions to these rules:</p>
  199.    <ul class="L14">
  200.     <li class="">
  201.      <p class="P15">It ignores "font" commands. Otherwise, there would often be different characters from the ones desired, e.g. "font sans (a oplus b)" would then neither have brackets nor an "oplus".</p>
  202.     </li>
  203.    </ul>
  204.    <ul class="L15">
  205.     <li class="">
  206.      <p class="P16">The "ital" commands are ignored, e.g. "ital (a + b)". This happens because mathematical symbols are not common; even in combination with text in italics.</p>
  207.     </li>
  208.    </ul>
  209.    <table><tr class="Tabelle81"><th class="Tabelle8A1" style="text-align:left;"><span class="Tabelle8A">
  210.        <p class="Paragraph"><draw:image draw:style-name="fr2" draw:name="Grafik2" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="2" xlink:href="66732" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  211.       </span></th><th class="Tabelle8A1" style="text-align:left;"><span class="Tabelle8B">
  212.        <p class="Paragraph">To change the size, you should not use "size n", but rather the versions containing +,-,*,/. These can easily be used in any context. This enables you to copy to other areas by using Copy and Paste, and the result still remains similar. Furthermore, such expressions "survive" a change of the base size in ht menu better than when using "size n". If you use only "size *" and "size /" (e.g. "size *1.24 a or size /0.86 a") the proportions should be kept intact.</p>
  213.        <p class="Paragraph">Examples (with a base size of 12 and 50% for indexes):</p>
  214.        <p class="Paragraph">Exactly identical proportions with "size 18 a_n" and "size *1.5 a_n".</p>
  215.        <p class="Paragraph">This differs in different contexts: "x^{size 18 a_n}" and "x^{size *1.5 a_n}"</p>
  216.        <p class="Paragraph">Examples with size +n for a comparison. They look identical:</p>
  217.        <p class="Paragraph">a_{size 8 n}</p>
  218.        <p class="Paragraph">a_{size +2 n}</p>
  219.        <p class="Paragraph">a_{size *1.333 n}</p>
  220.        <p class="Paragraph">The following examples, however, do not look identical:</p>
  221.        <p class="Paragraph">x^{a_{size 8 n}}</p>
  222.        <p class="Paragraph">x^{a_{size +2 n}}</p>
  223.        <p class="Paragraph">x^{a_{size *1.333 n}}</p>
  224.        <p class="Paragraph">Note that all n here have different sizes. The size 1.333 results from 8/6, the desired size divided by the default index size 6. (Index size 50% with a base size of 12)</p>
  225.       </span></th></tr></table>
  226.    <p class="Paragraph"/>
  227.   </body></html>